package me.lcc.demo.api;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import me.lcc.demo.client.CTestApi;

@RestController
public class STestApi {
	@Autowired
    private CTestApi testApi;
	
	/**
	 * 测试接口服务的状态
	 * @param name
	 * @return
	 */
	@RequestMapping("/feign/test/status")
	public Map<String, Object> status(String name){
		return testApi.status(name);
	}
}
